package tk.mybatis.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.springboot.common.KeCongResult;
import tk.mybatis.springboot.common.ResultObject;
import tk.mybatis.springboot.service.TaskService;

@RestController
public class VehicleController {

    @Autowired
    TaskService taskService;

    @RequestMapping("/api/allVechicleStatus")
    public Object getVechicleStatus(){

        KeCongResult keCongResult = taskService.allVehicleStatus();
        ResultObject resultObject = new ResultObject();
        resultObject.data = keCongResult;
        return resultObject;
    }
}
